#include "formclient.h"

namespace viswidgets
{

viewid_t view_id_formclient = "formclient";

view_desc_t form_client_desc = {
	view_id_formclient,
	wstyle_common,
	widget_view_handlers,
};

form_client::form_client(int left, int top, int width, int height, view_t* vi)
: widget(left, top, width, height, &form_client_desc, vi)
{
}

form_client::~form_client()
{
}

void form_client::on_draw(drawing_context& dc)
{
	view_t* vi = dc.view();
	visgrph::canvas& cvs = dc.canvas();
	visgrph::color linc(0, 0, 0, 255);
	visgrph::color filc(255, 255, 255, 255);
	cvs.box(0, 0, vi->width, vi->height, linc);
	cvs.rectangle(1, 1, vi->width - 2, vi->height - 2, filc);
}

}; // namespace viswidgets
/* EOF */
